{
 "nbformat": 4,
 "nbformat_minor": 0,
 "metadata": {
  "colab": {
   "provenance": [],
   "gpuType": "T4"
  },
  "kernelspec": {
   "name": "python3",
   "display_name": "Python 3"
  },
  "language_info": {
   "name": "python"
  },
  "accelerator": "GPU"
 },
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "> 🌟 如果你觉得 ChatTTS 和 ChatTTS_colab 项目对你有帮助，请访问以下链接给它们点个星星吧！🌟\n",
    "\n",
    "- [ChatTTS 项目](https://github.com/2noise/ChatTTS)\n",
    "\n",
    "- [ChatTTS_colab 项目](https://github.com/6drf21e/ChatTTS_colab)\n",
    "\n",
    "感谢你的支持！\n",
    "\n",
    "# 运行方法\n",
    "\n",
    "- 点击菜单栏的--代码执行程序--全部运行即可\n",
    "- 执行后在下方的日志中找到类似\n",
    "\n",
    "  Running on public URL: https://**************.gradio.live  <-这个就是可以访问的公网地址\n",
    "\n",
    "安装包的时候提示要重启 请点**\"否\"**"
   ],
   "metadata": {
    "id": "Xo3k5XsTzWK6"
   }
  },
  {
   "cell_type": "code",
   "source": [
    "!git clone -q https://github.com/6drf21e/ChatTTS_colab\n",
    "%cd ChatTTS_colab\n",
    "!git clone -q https://github.com/2noise/ChatTTS\n",
    "%cd ChatTTS\n",
    "!git checkout -q e6412b1\n",
    "%cd ..\n",
    "!mv ChatTTS abc\n",
    "!mv abc/* /content/ChatTTS_colab/\n",
    "!pip install -q omegaconf vocos vector_quantize_pytorch gradio cn2an pypinyin openai jieba WeTextProcessing python-dotenv\n",
    "# 启动 Gradio 有公网地址\n",
    "!python webui_mix.py --share\n"
   ],
   "metadata": {
    "id": "hNDl-5muR77-"
   },
   "execution_count": null,
   "outputs": []
  }
 ]
}
